﻿#region Creditos

/* Autor: Edilberto Sánchez Forero	*/
/* Email: esanchezfo@gmail.com		*/
/* Licencia: LGPL, Software Libre	*/
/* País: Colombia, Bogotá			*/

#endregion

#region Librerias

using System;
using System.Net.Sockets;

using ESF.General;
using System.Collections.Generic;
using System.Net;
using System.IO;

#endregion


namespace ESF.Peer
{
	public interface IForwarder
	{
		#region Eventos

		event Action<Socket> OnEndSend;
		
		#endregion


		#region Metodos
	
		void Send (Socket pSocket, string pData);

		void SendLine(Socket pSocket, string pData);
		
		void Send (Socket pSocket, byte [] pData);
		
		void Send (IPEndPoint pTo, byte [] pData);
		
		#endregion


		#region Propiedades

		bool NoDelay { set; get; }

		int SendTimeoutMS { set; get; }

		int MaxFileSendSizeBytes { set; get; }

		#endregion
	}
}
